import { BaseData, BaseMethod } from '@/utils/basc-data'
import * as tableConfig from './config.json'
import { ref } from 'vue'

export default class AccountingData extends BaseData implements BaseMethod {
    //选择的时间段
    date = ref('')
    constructor() {
        super(tableConfig)
        this.pageData.search.unshift(
            ...[
                {
                    key: 'date',
                    type: 'daterange',
                    name: '',
                    modelValue: '',
                    placeholder: '请选择时间',
                    change: (res: any) => {
                        this.date.value = res
                    }
                }
            ]
        )
        this.getData()
    }

    getData = (arg?: any) => {}
    onSearch = (arg?: any) => {}
    onReset = (arg?: any) => {}
    onPaginationChange = (arg?: any) => {}
    onPaginationSize = (arg?: any) => {}
    onOperation = (arg?: any) => {}
}
